<!DOCTYPE html>
<html ng-app=authapp>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
	<title>江苏省中等职业院校评估系统</title>
	<meta name="keywords" content="江苏省中等职业院校评估系统">
	<meta name="description" content="江苏省中等职业院校评估系统">

	<link rel="stylesheet" href="../../plugin/bootstrap/bootstrap.min.css" />
	<link rel="stylesheet" href="../../basic/style/base.css" />
	<link rel="stylesheet" href="../../models/admin/css/home.css"/>
	<link rel="stylesheet" href="../../models/admin/css/auth_step.css"/>
	<link rel="stylesheet" href="../../models/admin/css/assessment.css"/>
	
    <script src="../../plugin/angular/angular.min.js"></script>
    <script src="../../models/admin/js/assessment.js"></script>
    <script src="../../plugin/bootstrap/ui-bootstrap-tpls.js"></script>
    <script src="../../plugin/angular/angular-cookies.min.js"></script>
    <script src="../../plugin/angular/ng-file-upload.min.js"></script>
    <script src="../../basic/js/source.js"></script>
    <script src="../../basic/javascript/funcs.js"></script>
    <script src="../../basic/js/directive.js"></script>
    
</head>

<body>
	<div authheader></div>
	<div class="main-content" ng-controller="fcontroller">
		<div leftaside></div>
		<aside>
			<div class="top-bar"><span>现场考查管理</span></div>
			<section class="row">				
				<div ng-controller="assessmentListController">
					<div class="whole-cover" ng-hide="isAddM"></div>
					<div class="add-form" ng-hide="isAddM">
						<div>配置考察组</div>
						<div>
							<span>填写组名：</span><input type="text" ng-model="expertGName" placeholder="请输入考察组名"/>
						</div>
						<div><div ng-hide="isclickBtn" ng-click="addExpertCroup()">确认</div><div ng-show="isclickBtn" ng-click="updateAuthExpertGroup()">修改</div><div ng-click="cancelAddM()">取消</div></div>
					</div>

					<div class="top-check clearfix">
						<input type="text" class="fl text01"  ng-model="expertName" placeholder="请输入专家组名"/>
						<div class="fl btn-query btn ml15" ng-click="queryMain()">查询</div>
						<div class="fr btn-add btn mr15" ng-click="addM()">创建专家组</div>
					</div>
					<div class="list-content">
						<div class="cooleList title">
							<div class="detail-part">
								<ul>
									<li>组名</li>
								</ul>
							</div>
							<div class="detail-bot stateSet">状态设置</div>
							<div class="detail-bot">操作</div>
						</div>
						<div ng-repeat="arraylist in list" class="cooleList" ng-if="list.length > 0">
							<div class="detail-part">
								<ul>
									<li ng-bind="arraylist.s_name?arraylist.s_name:'-'" title="{{arraylist.s_name}}">组名</li>
								</ul>
							</div>
							<div class="detail-bot stateSet">
								<span class="btn btn-success" ng-if="arraylist.s_state=='0'"  ng-click="setExpertGroupState(arraylist.pid,1)">考察开始</span>
								<span class="btn btn-query"  ng-if="arraylist.s_state=='1'" ng-click="setExpertGroupState(arraylist.pid,3)">结束考察</span>
								<span class="btn btn-gray"  ng-if="arraylist.s_state=='3'">考察结束</span>
							</div>
							<div class="detail-bot">
								<span ng-if="arraylist.s_state=='0'" class="action under" style="color:#169BD5;cursor:pointer;" ng-click="queryAuthGroup(arraylist.pid,arraylist.s_name)">修改</span>
								<span ng-if="arraylist.s_state=='1'||arraylist.s_state=='3'" class="action" style="color:#ccc;cursor:pointer;">修改</span>
								<span ng-if="arraylist.s_state=='0'" class="action under" style="color:#169BD5;cursor:pointer;" ng-click="setSchool(arraylist.pid)">分配学校</span>
								<span ng-if="arraylist.s_state=='1'||arraylist.s_state=='3'" class="action" style="color:#ccc;cursor:pointer;">分配学校</span>
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="turnTo(arraylist.pid)">查看专家</span>
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="deleteGroup(arraylist.pid)">删除分组</span>
							</div>
						</div>
						<div ng-if="list.length > 0" style="padding: 10px">共{{totalCount}}条</div>
						<div class="cooleList" style="text-align: center;padding:10px" ng-if="list.length == 0">
							暂无相关数据
						</div>
					</div>
					<section ng-controller="pageDemo" class="col-md-7 pull-right" ng-show = "totalCount > pageSize">
						<pagination total-items="bigTotalItems" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-links="true" rotate="false" num-pages="numPages" items_per_page="itemsPerPage" callback="pageChanged()" previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页"></pagination>
					</section>
				</div>
		    </section>
		</aside>
	</div>
	<div authfooter></div>
</body>
</html>
